require 'buildr'
require 'Dojo'
 
VERSION_NUMBER = '1.0.0-SNAPSHOT'
 


DOJO = '1.4.1'
url = "http://download.dojotoolkit.org/release-#{DOJO}/dojo-release-#{DOJO}-src.zip"
download(artifact("dojo:dojo:zip:#{DOJO}")=>url)

repositories.remote << 'http://www.ibiblio.org/maven2/'
 
desc 'judo'
define 'judo' do
 
  project.version = VERSION_NUMBER
  project.group = 'net.aramzamzam.tapestry'
  compile.options.target = '1.6'

  desc 'javascript'
  define 'javascript' do
    compile.using :dojo=>DOJO, :profile=>'judo.profile.js', :mode=>"sources"
    package(:sources).include _('src/main/dojo')
    package(:jar)
  end
  
  desc 'dojo'
  define 'dojo' do
    project.version = DOJO
    compile.using :dojo=>DOJO, :profile=>'judo.profile.js', :mode=>"dojo"
    package(:jar)
  end

  #javadoc projects
  #package :sources

end
